/*
 * @Author: tangyuhui 317972442@qq.com
 * @Date: 2024-09-03 23:41:39
 * @LastEditors: tangyuhui 317972442@qq.com
 * @LastEditTime: 2024-09-11 14:43:01
 */
import React from "react";
import { Tag } from "antd";

interface TagProps {
  label: string;
  isActive: boolean;
  onClick: () => void;
}

const TagComponent: React.FC<TagProps> = ({ label, isActive, onClick }) => {
  const color = isActive ? "orange" : "default";
  return (
    <Tag color={color} onClick={onClick} className="cursor">
      {label}
    </Tag>
  );
};

export default TagComponent;